﻿@using Microsoft.AspNetCore.Authentication

<h1>Secure</h1>

@{ 
    var id_token = await Context.GetTokenAsync("id_token");
}

<div>
    <dl>
        <dt>id_token</dt>
        <dd>@id_token</dd>

        @foreach (var claim in User.Claims)
        {
            <dt>@claim.Type</dt>
            <dd>@claim.Value</dd>
        }
    </dl>
</div>